<?php
class ActivitiesController extends EventfulAppController {

    public $name = 'Activities';
    public $helpers = array('Html', 'Form');

    public function delete($id = null) {
        if (!$id) {
            $this->Session->setFlash(__('Invalid id for Activities', true));
            $this->redirect(array('action'=>'index'));
        }
        if ($this->Event->del($id)) {
            $this->Session->setFlash(__('Activities deleted', true));
            $this->redirect(array('action'=>'index'));
        }
    }

}
?>